package com.kingwang.training.ooad.coffeemaker.badway;

import com.kingwang.training.ooad.coffeemaker.hardware.api.CoffeeMakerApi;

/**
 * 由于BoilerHeater和PlateHeater有相同的属性和行为
 * 提取抽象类存放公共代码
 *
 * @author King
 */
public abstract class Heater {
    protected CoffeeMakerApi coffeeMakerApi;

    public Heater(CoffeeMakerApi coffeeMakerApi) {
        this.coffeeMakerApi = coffeeMakerApi;
    }

    public abstract void on();

    public abstract void off();
}
